# 导包
import unittest
from htmltestreport import HTMLTestReport
from scripts.test01_login import TestLoginAPI
from scripts.test02_staff import TestStaffAPI
import config


# 组装测试套件
suite = unittest.TestSuite()
suite.addTest(unittest.makeSuite(TestLoginAPI))
suite.addTest(unittest.makeSuite(TestStaffAPI))

# 创建runner
runner = HTMLTestReport(config.BATH_PATH + "/report/abc.html", title="API Testing")

# 运行suite
runner.run(suite)